home *** CD-ROM | disk | FTP | other *** search
/ Clickx 22 / Clickx 22.iso / DATA / eLibPro1.3_setup.exe / Styles / Title Only.xsl < prev   
Encoding:
Extensible Markup Language  |  2005-01-28  |  1.1 KB  |  35 lines

  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.     <xsl:output method="html" />
  4.     <!-- main template begins -->
  5.     <xsl:template match="/">
  6.         <HEAD>
  7.             <LINK REL="StyleSheet" TYPE="text/css" HREF="elib.css"></LINK>
  8.             <TITLE>eLibPro Book Information</TITLE>
  9.         </HEAD>
  10.         <BODY leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0">
  11.             <xsl:apply-templates />
  12.         </BODY>
  13.     </xsl:template>
  14.     <!-- template for individual book begins -->
  15.     <xsl:template match="Book">
  16.         <table border="0" cellspacing="0" cellpadding="0" width="100%">
  17.             <tr>
  18.                 <td><b>
  19.                         <xsl:number format=" 1. "/></b>
  20.                         <xsl:value-of select="Author" /><xsl:text>, </xsl:text>
  21.                         <b><xsl:value-of select="Title" /></b>
  22.                         <xsl:if test="Subtitle!=''">
  23.                             <xsl:text> - </xsl:text>
  24.                             <xsl:value-of select="Subtitle" />
  25.                         </xsl:if>
  26.                         <xsl:text>, ISBN: </xsl:text>
  27.                         <xsl:value-of select="ISBN" />
  28.                         <xsl:if test="ReleaseDate!=''"> (<xsl:value-of select="ReleaseDate" />)
  29.                         </xsl:if>
  30.                 </td>
  31.             </tr>
  32.         </table>
  33.     </xsl:template>
  34. </xsl:stylesheet>
  35.